﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="cHead" ContentPlaceHolderID="cphHead" runat="server">
    <% this.Page.Title = (string)ViewData["PageTitle"]; %>
</asp:Content>

<asp:Content ID="cJScripts" runat="server" ContentPlaceHolderID="cphJScripts">
    <script type="text/javascript">
        $(document).ready(function() {
            $("form input").keypress(function(e) {
                if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
                    $('form:eq(0)').submit();
                    return true;
                }
            });
        });
    </script>
</asp:Content>

<asp:Content ID="cMainContent" ContentPlaceHolderID="cphMainContent" runat="server">
    <div id="login">
        <%= Html.ValidationSummary(ScoutNET.Resources.Master_Form_ErrorMessage)%>
        <% Html.RenderPartial("LoginForm"); %>
    </div>
</asp:Content>
